﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Model.Sys
{
    /// <summary>
    /// 字典信息模型
    /// </summary>
    public class Dictionary:EntityBase<Guid>
    {
        /// <summary>
        /// 字典名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 字典描述
        /// </summary>
        [StringLength(300)]
        public string Description { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        public virtual DictionaryType Parent { get; set; }

    }
}
